package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "订单物流详情")
@Table(name = "tb_order_logistics")
public class OrderLogistics {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("订单id")
    private Long orderId;
    @ApiModelProperty("订单类型 GOODS_ORDER(\"商品订单\")")
    private String orderType;
    @ApiModelProperty("物流公司id")
    private Long logisticsCompanyId;
    @ApiModelProperty("物流公司名称")
    private String logisticsCompanyName;
    @ApiModelProperty("物流公司编码")
    private String logisticsCompanyCode;
    @ApiModelProperty("快递单号")
    private String courierNumber;
    @ApiModelProperty("地图轨迹url")
    private String trajectoryUrl;
    @ApiModelProperty("发货人")
    private String sendPeople;
    @ApiModelProperty("发货人电话")
    private String sendPhone;
    @ApiModelProperty("发货地址")
    private String sendAddress;
    @ApiModelProperty("收货人")
    private String receivePeople;
    @ApiModelProperty("收货人电话")
    private String receivePhone;
    @ApiModelProperty("收货地址")
    private String receiveAddress;
    @ApiModelProperty("物流状态  NOT_STARTED(\"未开始\"),\n" +
            "IN_TRANSIT(\"在途中\"),\n" +
            "RECEIVE(\"已完成\"),\n" +
            "ABNORMAL(\"异常\");")
    private String status;
    @ApiModelProperty("物流信息")
    private String logisticsInfo;
}
